﻿using BW.WMS.Domain.Entities;
using BW.WMS.Infrastructure.Data.Contexts;
using BW.WMS.Infrastructure.Data.Repositories;
using Dapper;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using static BW.WMS.Infrastructure.Data.Contexts.DBContext;

namespace BW.WMS.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TextController : ControllerBase
    {
        private readonly DataRepository<Users> repository;
        private readonly DBContext db;

        public TextController(DataRepository<Users> repository, DBContext db)
        {
            this.repository = repository;
            this.db = db;
        }
        [HttpGet]
        public List<Users> GetList()
        {

            string  sql = "SELECT * FROM USERTEST;";
            return repository.GetList(sql);
        }
        [HttpGet]
        public int AddESS()
        {
            return 0;
        }


    }
}
